import 'package:flutter/material.dart';
import 'package:splash_login/pages/splash.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'SplashLogin',
      debugShowCheckedModeBanner: false,
      // 全局样式
      theme: ThemeData(
          // 设置全局elevatedButtonTheme
          elevatedButtonTheme: ElevatedButtonThemeData(
            style: ElevatedButton.styleFrom(backgroundColor: Colors.orange),
          ),
          fontFamily: 'Poppins'),
      home: const SplashPage(),
    );
  }
}
